package com.github.huifer.example.redis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class App {

	@Value("${spring.datasource.password}")
	private String dataSourceProperties;


	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}

	@Bean
	public ApplicationRunner runner() {
		return args -> {
			System.out.println(dataSourceProperties);
		};
	}
}
